home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / gfx / misc / ftriang2.lha / ftriangles.readme < prev   
Text File  |  1993-11-12  |  2KB  |  44 lines

  1. Hi.
  2.  
  3. This is the second in a series of Stupid Picasso Tricks. ftriangles displays
  4. random Gouraud-shaded triangles on a 24-bit 640x480 Picasso II screen.
  5.  
  6. ftriangles v2.0 is between 2.5 and 3.0 times faster than v1.0 was.
  7.  
  8. ftriangles takes one parameter, the number of triangles to display.  The
  9. default if no parameter is given is 10.  You can safely run it with a very
  10. large number, as in 'ftriangles 1000000', and abort it when bored.  Any mouse
  11. click or key should cause it to exit after the current triangle completes.
  12.  
  13. If you feed it a negative number, such as -100, it will run in performance test
  14. mode.  In this mode, it may not be aborted.  To get results which may be fairly
  15. compared, you should leave the Picasso screen in front until it's done.  With
  16. a negative parameter, the random number generator with a constant, so as to get
  17. reproducible results.
  18.  
  19. Here are some performance results from my A4000/040:
  20.  
  21. v1.0:
  22. ftriangles -100
  23. drew 100 triangles in 27 seconds, performance of 3.70 triangles/second
  24. ftriangles -500
  25. drew 500 triangles in 131 seconds, performance of 3.82 triangles/second
  26.  
  27. v2.0:
  28. ftriangles -100
  29. drew 100 triangles in 10.90 seconds, performance of 9.18 triangles/second
  30. ftriangles -500
  31. drew 500 triangles in 48.86 seconds, performance of 10.23 triangles/second
  32.  
  33. I also switched from the ANSI time() call to the AmigaDOS timer() call for
  34. v2.0.  So much for portability.  This enabled me to increase the resolution of
  35. the timings.  The old method caused the times to be slightly understated.  This
  36. implies that v1.0 wasn't even quite as fast as is shown above, and that v2.0 is
  37. even more faster than one might guess.  :-)
  38.  
  39. Have fun!
  40. _john
  41.  
  42. grieggs@netcom.com
  43. johng@shell.portal.com
  44.